package oracle;
/**
 * This class represents the different types of moves
 * @author mdailey
 *
 */
public class MoveTypes {
	/** no move is to mark a random move was not attempted */
	public static final int NO_MOVE = 0;
	/** To move up */
	public static final int UP = 1;
	/** To move down */
	public static final int DOWN = 2;
	/** To move left */
	public static final int LEFT = 3;
	/** To move right */
	public static final int RIGHT = 4;
	/** To kill self and incur a penalty */
	public static final int KILL_SELF = 5;
	/** To look around, makes tiles visible and takes up move = yes */
	public static final int LOOK_AROUND = 6;
	/** If the user is in same tile because they hit a wall */
	public static final int HIT_WALL = 7;
	
	public static String toString(int moveAttempted) {
		if(moveAttempted == 0)
			return "NO_MOVE";
		else if(moveAttempted == 1)
			return "UP";
		else if(moveAttempted == 2)
			return "DOWN";
		else if(moveAttempted == 3)
			return "LEFT";
		else if(moveAttempted == 4)
			return "RIGHT";
		else if(moveAttempted == 5)
			return "KILL_SELF";
		else if(moveAttempted == 6)
			return "LOOK_AROUND";
		else if(moveAttempted == 7)
			return "HIT_WALL";
		return "???";
	}
}
